package com.d0312;

public class Person {
    private String name;
    private int age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
class TestPerson{
    public static void main(String[] args) {
            Person person=new Person();
            person.setName("Jack");
        System.out.println(person.getName());
    }
}
